﻿using BaseData.CommonLib.Models;

namespace Production.CommonLib.Models
{
    public class StandardBomDetailEditRequestDto
    {
        public int Id { get; set; }

        public int MaterialId => Material.Id;

        /// <summary>
        /// 物料编码
        /// </summary>
        public string? MaterialCode => Material.Code;

        /// <summary>
        /// 物料名称
        /// </summary>
        public string? MaterialName => Material.Name;

        public string? Specification => Material.Specification;

        public int? Unit => Material.Unit;

        public MaterialInfoResponseDto Material { get; set; } = new();

        public double Quality { get; set; }

        public double LossRate { get; set; }
    }
}